package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 添加${table.comment!}
     *
     * @param bean
     * @return RestResponse
     */
    RestResponse add(${entity} bean);

    /**
     * 删除${table.comment!}
     *
     * @param id
     * @return RestResponse
     */
    RestResponse delete(IdParamBO req);

    /**
     * 修改${table.comment!}
     *
     * @param bean
     * @return RestResponse
     */
    RestResponse update(${entity} bean);

    /**
     * 查询${table.comment!}
     *
     * @param id
     * @return RestResponse
     */
    RestResponse detail(Long id);

    /**
     * 分页查询${table.comment!}
     *
     * @param bean
     * @param page
     * @param pageSize
     * @return RestResponse
     */
    RestResponse listPage(${entity}QueryBO req);
 }
</#if>